// 内容脚本的样式
// 设置一些自定义样式，用于页面中显示的元素

.webpost-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(52, 152, 219, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  z-index: 10000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
  
  &.success {
    background-color: rgba(46, 204, 113, 0.9);
  }
  
  &.error {
    background-color: rgba(231, 76, 60, 0.9);
  }
  
  &.fade-out {
    opacity: 0;
  }
}

.webpost-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  
  .webpost-modal {
    background-color: white;
    border-radius: 6px;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    
    .webpost-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      
      h2 {
        margin: 0;
        font-size: 18px;
      }
      
      .webpost-close-button {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #999;
        
        &:hover {
          color: #333;
        }
      }
    }
    
    .webpost-modal-content {
      margin-bottom: 20px;
    }
    
    .webpost-modal-footer {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      
      button {
        padding: 8px 15px;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        font-weight: 500;
        
        &.webpost-primary-button {
          background-color: #3498db;
          color: white;
          
          &:hover {
            background-color: #2980b9;
          }
        }
        
        &.webpost-secondary-button {
          background-color: #f5f5f5;
          color: #333;
          
          &:hover {
            background-color: #e0e0e0;
          }
        }
      }
    }
  }
} 